﻿@model OneToManyEntityFramework.Model.Album
@{
    ViewBag.Title = "Details";
}

<h2>Album Details</h2>
<h2>@Model.Name</h2>
<h2>@Model.Artist</h2>

@foreach (var s in Model.Songs)
{
    <div class="well">
        <h2>@s.Title</h2>
        <h2>@s.DateReleased</h2>
        @Html.ActionLink("Edit Song", "EditSong", new { id = s.SongId }, new { @class = "btn btn-primary" })
    </div>
}

@Html.ActionLink("Add Song", "AddSong", new { id = Model.AlbumId }, new { @class = "btn btn-primary" })
<!--ActionLink(String to show on button, String method to call, object route value , object html attribute (at class bootstrap))-->